package com.hjx.windowtool.bk.dibaqu.server;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.QueryByExampleExecutor;

public interface BookInfoRepository extends JpaRepository<BookInfo, Long>,QueryByExampleExecutor<BookInfo>{

	BookInfo findByTitleAndAuthor(String title, String author);
	
	Page<BookInfo> findAll(Specification<BookInfo> spec, Pageable pageable);

}
